package com.cbd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cbd.desensitization.Desensitization;
import com.cbd.util.DesensitizationTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: CBD
 * @Date: 2024/11/22 9:05
 * @Description:用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
@ApiModel("用户实体类")
public class UserEntity {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("密码")
    @Desensitization(type = DesensitizationTypeEnum.PASSWORD)
    private String password;
    @ApiModelProperty("家庭住址")
    @Desensitization(type = DesensitizationTypeEnum.ADDRESS)
    private String address;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("身份证图片地址")
    private String cardImage;
    @ApiModelProperty("认证地址")
    private String confirmImage;
    @ApiModelProperty("认证状态")
    private Integer status;
    @ApiModelProperty("注册时间")
    private String createTime;
}
